//
//  DealModel.h
//  BaiTuan
//
//  Created by huiwenjiaoyu on 15/12/23.
//  Copyright © 2015年 YR. All rights reserved.
//
/*
 {
 "deal_id": 648122,
 "image": "http://timg.baidu.com/timg?lbstsm&ref=http%3a%2f%2fbj.nuomi.com&quality=100&size=8&sec=1450849667&di=fa6735c24d955b9fcaead34edc30fbcc&src=http://S0.nuomi.bdimg.com/upload/deal/2014/2/V_L/648122-1392949634776.jpg",
 "tiny_image": "http://timg.baidu.com/timg?lbstsm&ref=http%3a%2f%2fbj.nuomi.com&quality=100&size=8&sec=1450849667&di=ae49e466bd04492288aef4f91c381c4f&src=http://S0.nuomi.bdimg.com/upload/deal/2014/2/V_T/648122-1392949634776.jpg",
 "title": "两岸咖啡",
 "description": "【高教园】【两岸咖啡】滨江南环店单人牛排套餐！装修典雅浪漫，环境温馨静谧",
 "market_price": 23900,
 "current_price": 5860,
 "promotion_price": 5860,
 "sale_num": 1734,
 "score": 4.56,
 "comment_num": 173,
 "publish_time": 1392991200,
 "purchase_deadline": 1453132799,
 "is_reservation_required": false,
 "distance": 1164,
 "shop_num": 1,
 "deal_url": "http://www.nuomi.com/cps/redirect?cid=openapi&app_id=476678f7a2144d2da076ce91d481b66a&url=http%3A%2F%2Fhz.nuomi.com%2Fdeal%2Fspblvfem.html",
 "deal_murl": "http://www.nuomi.com/cps/redirect?cid=openapi&app_id=476678f7a2144d2da076ce91d481b66a&url=http%3A%2F%2Fm.nuomi.com%2Fhz%2Fdeal%2Fspblvfem",
 "shops": [
 {
 "shop_id": 512884,
 "longitude": 120.156896,
 "latitude": 30.186096,
 "distance": 1163.74,
 "shop_url": "http://www.nuomi.com/cps/redirect?cid=openapi&app_id=476678f7a2144d2da076ce91d481b66a&url=http%3A%2F%2Fwww.nuomi.com%2Fshop%2F512884",
 "shop_murl": "http://www.nuomi.com/cps/redirect?cid=openapi&app_id=476678f7a2144d2da076ce91d481b66a&url=http%3A%2F%2Fm.nuomi.com%2Fmerchant%2F512884"
 }
 ]
 },
 */

#import "BaseModel.h"

@interface DealModel : BaseModel

@property (nonatomic, strong) NSNumber *deal_id;
@property (nonatomic, copy) NSString *image;
@property (nonatomic, copy) NSString *tiny_image;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *dealDescription;
@property (nonatomic, copy) NSNumber *market_price;
@property (nonatomic, copy) NSNumber *current_price;
@property (nonatomic, copy) NSNumber *distance;
@property (nonatomic, copy) NSNumber *score;

+ (NSArray *)dealsWithDic:(NSArray *)deals;
@end
